<%@ include file="/html/portlet/ext/dashBoard/init.jsp" %>
<%
	String collegeId = (String) session.getAttribute("CollegeId");
	College college = CollegeLocalServiceUtil.getCollege(Long.parseLong(collegeId));
%>
<b> <%= college.getName() %>&nbsp;&nbsp;<liferay-ui:message key="student_list" /> &raquo;</b><br>
	
<%  
   
	java.util.Vector<CollStudent> vectorList = (java.util.Vector<CollStudent>) request.getAttribute("FilteredCollStudent");
	String degree = (String) request.getAttribute("degree");
		
	List<CollStudent> collStudentList = new ArrayList<CollStudent>();
	collStudentList = vectorList.subList(0, vectorList.size());
				
	PortletURL navigationURL = renderResponse.createRenderURL();
	navigationURL.setParameter("struts_action", "/ext/dashBoard/dashBoardAction");
	navigationURL.setParameter(Constants.CMD, "bydegree"); 
	navigationURL.setParameter("degree", degree); 
	
	SearchContainer searchContainer = new SearchContainer(renderRequest, null, null, SearchContainer.DEFAULT_CUR_PARAM, 5, navigationURL, null, "");
	List<CollStudent> result = ListUtil.subList(collStudentList, searchContainer.getStart(), searchContainer.getEnd());
	int total = collStudentList.size();
	searchContainer.setTotal(total);	
	for(int i=0; i < result.size(); i++) {
		CollStudent collStudent = result.get(i);
%>
	
	<liferay-ui:user-display userId="<%= collStudent.getUserId() %>" userName="<%= collStudent.getFirstName() %>" displayStyle="2"/> 
				
<%}%>
	<div class="taglib-search-iterator-page-iterator-bottom">
		<liferay-ui:search-paginator searchContainer="<%= searchContainer %>" />
	</div>

	<br>&laquo;<a href="javascript:history.go(-1)()"><liferay-ui:message key="back" /></a></b><br>
	